
part of 'take_photo_result.dart';

TakePhotoResult _$TakePhotoResultFromJson(Map<String, dynamic> json) {
  final success = json["success"] as bool ?? false;
  final tempPaths = json["paths"] as List<dynamic> ?? [];
  final paths = tempPaths.map((e) => e as String).toList();
  final error = json["error"] as String ?? "";
  return TakePhotoResult(
    success: success,
    paths: paths,
    error: error,
  );
}

Map<String, dynamic> _$TakePhotoResultToJson(TakePhotoResult instance) => <String, dynamic>{
  'success': instance.success.toString(),
  'paths': instance.paths.toString(),
  'error': instance.error,
};
